# -*- coding: utf-8 -*-
"""
 @Time    : 2021/1/27 下午4:55
 @Author  : tgy
 
"""
import itertools


def my_chain(*args):
    ...
    for arg in args:
        for v in arg:
            yield v


def my_chain01(*args):
    for arg in args:
        yield from arg

if __name__ == '__main__':
    ...
    for v in itertools.chain('abc', [1, 2, 3], {'name': '1', 'age': 21}, {4, 5, 6}):
        print(v)
    for v in my_chain01('abc', [1, 2, 3], {'name': '1', 'age': 21}, {4, 5, 6}):
        print(v)